{extend name="AdminController/index" /}
{block name="main"}
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>
<form action="{:url('updateRole')}" method="post" >
    <div class="form-group">
      <label for="disabledTextInput">管理员ID(不可更改)</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="UserName" name="id" disabled value="{$uid}">
    </div>

    <div class="form-group">
          <!-- Select Basic -->
          <label class="control-label">分配角色</label>
          <div class="controls">

            {volist name="role" id="v"}
              <input type="checkbox" name="role[]" value="{$v.id}" 
              {if condition="in_array($v['id'],$rname) eq true"}checked{/if}>
              {$v.name}
         
           {/volist}
           

          </div>
    </div>
    <input type="hidden" name="uid" value="{$uid}">
    <button type="submit" class="btn btn-success">提交</button>
</form>
    </div>
</div>


{/block}

